<!DOCTYPE html>
<html lang="en">
<meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no"
      name="viewport">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <script src="/dist/plugins/vue/vue.js"></script>
</head>
<body>
<div id="app">
    <a href="javascript:void(0);"
       @click="startApp('')">打开OA-APP</a>

    <div>在app调试h5,请先输入调试网址</div>
    <input type="text" v-model="url">
    <a href="javascript:void(0);"
       @click="startH5(url)">调试</a>
</div>
<script type="text/javascript">
    var app = new Vue({
        el: '#app',
        data: {
            url: "1"
        },
        methods: {
            startApp: function (url) {
                //alert(url)
                window.location = "oaapp://main?param=" + url;
            },
            startH5: function (url) {
                //alert(url)
                window.location = "oaapp://h5?param=" + url;
            }
        }
    });

</script>
</body>
</html>